home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_12 / schmidt / mundo2.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-11  |  337 b   |  30 lines

  1. =========
  2. Listing 4
  3. mundo.cpp after including headers
  4. =================================
  5.  
  6. //
  7. //  mundo.cpp
  8. //
  9. #define HERE 1 // HERE is referenced by both .h files
  10.  
  11. //
  12. //  hither.h
  13. //
  14. #if HERE != 0
  15.     static int hither = 0;
  16. #endif
  17. //
  18. //  yon.h
  19. //
  20. #if HERE != 0
  21.     extern int yon;
  22. #else
  23.     int yon = 0;
  24. #endif
  25.  
  26. void main()
  27.     {
  28.     }
  29.  
  30.